/**
 * 
 */
package com.nwpusp.model.location;

/**
 * @author JustinCao
 *
 */
public class Axis extends _3DConcept {

	public Axis(int x, int y, int z) {
		super(x, y, z);
	}

	public Axis(Axis target) {
		this(target.getX(), target.getY(), target.getZ());
	}

	public Axis Move(Size s) {
		return (Axis)Plus(s);
	}
	
	public Axis Move(int dx, int dy, int dz) {
		return (Axis)Plus(dx, dy, dz);
	}
	
	public Size Distance(Axis target) {
		return new Size(Math.abs(target.xConcept - xConcept), 
				Math.abs(target.yConcept - yConcept), 
				Math.abs(target.zConcept - zConcept));
	}
}
